<template></template>

<script setup>
import axios from '@/utils/request'
import { useRoute, useRouter } from 'vue-router'
import { ref, reactive } from 'vue'
import { ElMessage } from 'element-plus'

// 创建路由对象
const router = useRouter()
const route = useRoute()

// 获取订单id
const id = route.params.id

const getOrderInfo = async () => {
  try {
    const data = await axios.get('/bus/get/order', {
      params: {
        id
      }
    })
    console.log(data)
  } catch {
    ElMessage.error('请求失败！')
  } finally {
  }
}
getOrderInfo()
</script>

<style></style>
